-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add Context Menu to Runs view (ET-232) #9480
Conversation
Co-authored-by: Keita Fish <[email protected]>
Co-authored-by: Keita Fish <[email protected]>
can we please add more test cases? the coverage is 67.66055% |
@keita-determined updated w more tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added few comments, otherwise \o/
if (cell) { | ||
if ('displayData' in cell && isString(cell.displayData)) { | ||
return cell.displayData; | ||
} | ||
if (cell.copyData) return cell.copyData; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can simplify the code for the readability, but up to you
if (cell) { | |
if ('displayData' in cell && isString(cell.displayData)) { | |
return cell.displayData; | |
} | |
if (cell.copyData) return cell.copyData; | |
} | |
if (cell && 'displayData' in cell && isString(cell.displayData)) { | |
return cell.displayData; | |
} | |
if (cell && cell.copyData) return cell.copyData; |
if (cell) { | ||
if ('displayData' in cell && isString(cell.displayData)) { | ||
return cell.displayData; | ||
} | ||
if (cell.copyData) return cell.copyData; | ||
} | ||
return undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we fix the following warning?
Warning: An update to ForwardRef inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
Ticket
ET-232
Description
Adds context menu (menu which appears on right-click of DataGrid cell) to Runs view.
This PR includes these actions in the menu:
This PR has changes from #9368 merged in. Planning not to merge this PR until that one is merged first. Should not actually include backend changes at that time. Code coverage numbers should hopefully also improve when the patch is only for context menu changes.
Most likely easier to review by looking at the diff between those two branches here: feature/actions-flat-run-table...ET-232
Test Plan
With permissions to modify, move, and delete experiments/runs:
Checklist
docs/release-notes/
.See Release Note for details.